package com.comstar.cstgpio;

/**
 * Date    2019/2/17
 * Author  WestWang
 * 康士达
 */
public class GPIOJNI {

    static {
        System.loadLibrary("cstgpio");
    }

    public native static int
    openGpioDev();

    public native static int closeGpioDev();

    public native static int getGpio(int num);

    public native static int releaseGpio(int num);

    public native static int requestGpio(int num);

    public native static int setGpioState(int num, int state);

    public native static int setGpioDirection(int num, int state);

    //for adc1 module
    public native static int openAdc1Dev();

    public native static int closeAdc1Dev();

    public native static int getAdc1();

    public native static int openAdc2Dev();

    public native static int closeAdc2Dev();

    public native static int getAdc2();
}